define(
		[
		 	'jquery',
		 	'bootstrap',
		 	'underscore',
		 	'backbone',
		 	'query/views/OptionView'
        ], function($, _bootstrap, _, Backbone, OptionView) {
			var SelectView = Backbone.View.extend({
				tagName : 'select',
				className : 'input-small',
				initialize : function() {
					_.bindAll(this, 'render');
					this.render();
				},
				render : function() {
//					this.model.each(function(optionModel) {
//						this.$el.append(new OptionView({model : optionModel}).el);
//					}, this);
					_.each(this.model.models, function(optionModel) {
						this.$el.append(new OptionView({model : optionModel}).el);
					}, this);
					return this;
				}
			});
			return SelectView;
});